<template>
  <div class="header">
    <div class="header-left">
      <div class="iconfont">&#xe624;</div>
    </div>
    <div class="header-center"><span class="iconfont">&#xe632;</span>景点名称</div>
    <router-link to='/city'>
      <div class="header-right">{{this.$store.state.city}}<span class="iconfont">&#xe6aa;</span></div>
    </router-link>
  </div>
</template>
<script>
export default {
  name: 'homeHeader',
  props: {
    city: String
  }
}
</script>
<style lang='stylus' scoped>
  @import '~styles/varibles.styl'
  .header
    display: flex
    height: $headerHeight
    line-height: $headerHeight
    background: $bgcolor
    color: #fff
    .header-left
      width: .64rem
      float: left
      text-align: center
    .header-center
      flex: 1
      height: .64rem
      line-height: .64rem
      background: #fff
      margin-top: .12rem
      margin-left: .1rem
      border-radius: .05rem
      color: #ccc
    .header-right
      float: right
      text-align: center
      color: #fff
      padding: 0 .1rem
</style>
